package com.hzeport.bgs22emduty.outbound.db;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzeport.bgs22emduty.config.login.UserInfoDetailVO;
import com.hzeport.bgs22emduty.entity.ParamGroupDuty;
import com.hzeport.bgs22emduty.outbound.BaseGroupInfoRepository;
import com.hzeport.bgs22emduty.outbound.ParamGroupDutyRepository;
import com.hzeport.bgs22emduty.outbound.db.mapper.ParamGroupDutyMapper;
import com.hzeport.bgs22emduty.vo.base.PageVO;
import com.hzeport.bgs22emduty.common.base.BaseRepositoryImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class ParamGroupDutyRepositoryImpl extends BaseRepositoryImpl< ParamGroupDutyMapper, ParamGroupDuty > implements ParamGroupDutyRepository {

    @Resource
    private ParamGroupDutyMapper paramGroupDutyMapper;



    @Override
    public Page< ParamGroupDuty > getGroupPage( PageVO pageVO , UserInfoDetailVO userInfoDetailVO ) {
        Page< ParamGroupDuty > page = new Page<>( pageVO.getPageNum() , pageVO.getPageSize() );
        return paramGroupDutyMapper.getGroupPage( page , userInfoDetailVO );
    }
}